package com.example.demo.application_event_publisher;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 用戶注册事件
 */
@Getter
public class UserRegisterEvent extends ApplicationEvent {

    private User user;

    public UserRegisterEvent(User user) {
        super("user-register-event");
        this.user = user;
    }
}